<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>

<div class="exui-tabs" data-options="onSelect:onTabsSelect">
	<div title="请求参数" style="padding:10px">
		<div style="margin-bottom: 2px;">
			<a class="exui-linkbutton" data-options="btnCls:'primary',size:'xs'" onclick="addRow()"><i class="glyphicon glyphicon-plus"></i> 新增</a>
			<a class="exui-linkbutton" data-options="btnCls:'inverse',size:'xs',text:'编辑器模式'" onclick="modeSwitch(this)"></a>
			<a class="exui-linkbutton" data-options="btnCls:'gray',size:'xs',text:'json美化'" onclick="prettyJson()" style="display: none;"></a>
		</div>
		<span id="paramsDgWrap"><table id="paramsDg" class="exui-datagrid"></table></span>
		<span id="paramsJsonWrap" style="display: none;"><input id="paramsJson" class="exui-textbox" style="width:850px;height:200px" data-options="
			multiline: true,
			prompt: '参数可以通过如下两种方式进行添加\n批量添加：每行一个key:value\nJSON格式：以json格式书写参数'
		"/></span>
	</div>
	<div title="请求头" style="padding:10px">
		<a class="exui-linkbutton" data-options="btnCls:'primary',size:'xs'" onclick="addRow()" style="margin-bottom: 2px;"><i class="glyphicon glyphicon-plus"></i> 新增</a>
		<table id="headerDg" class="exui-datagrid"></table>
	</div>
</div>

<div id="addOrEditFoot" align="right" style="margin-top: 20px">
	<a class="exui-linkbutton" data-options="btnCls:'primary',size:'xs'" onclick="saveHttpParams()">保存</a>
	<a class="exui-linkbutton" data-options="btnCls:'default',size:'xs'" onclick="closeWin()">取消</a>
</div>

<script src="<%=request.getContextPath()%>/itest/js/apiManager/httpParams/httpParams.js" type="text/javascript" charset="utf-8"></script>
<script src="<%=request.getContextPath()%>/itest/js/apiManager/interfaceManager/common.js" type="text/javascript" charset="utf-8"></script>